package com.duruikang.LeaveAPI.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.duruikang.LeaveAPI.entity.Examine;

import java.util.List;
import java.util.Map;

/**
 * @author szh Drik
 */
public interface ExamineService extends IService<Examine> {

    /**
     * 提交审批
     *
     * @param leavingId 请假单id
     * @param token 教师token
     * @param examineResult 审批结果，需转int
     * @param examineComment 审批意见
     * @return 是否成功
     */
    public boolean submitExamination(String leavingId, String token, int examineResult, String examineComment);

    /**
     * 查询审批历史
     *
     * @param token token
     * @return 包含6列的map list：请假单id，请假单号，请假理由，请假时间，审批结果，审批时间
     */
    public List<Map<String, String>> getHistory(String token);

    public List<Map<String,String>> getExamines(String leavingId);


}
